package cn.wolfcode.p2p.business.domain;

import cn.wolfcode.p2p.base.domain.BaseDomain;
import cn.wolfcode.p2p.base.domain.LoginInfo;
import cn.wolfcode.p2p.util.Constants;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
@Getter@Setter
public class PaymentScheduleDetail extends BaseDomain{
    public static  final int TANSFER_STATE_NORMAL = 0;
    public static  final int TANSFER_STATE_TRANSFERING = 1;

    private BigDecimal bidAmount;//投资金额

    private Long bidId;

    private BigDecimal totalAmount= Constants.ZERO;//应收总额

    private BigDecimal principal=Constants.ZERO;//应收本金

    private BigDecimal interest=Constants.ZERO;//应收利息

    private int monthIndex;//第几期
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date deadline;//截止收钱日期

    private Long bidRequestId;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date payDate;

    private int returnType;

    private Long paymentScheduleId;

    private LoginInfo fromLoginInfo;

    private Long toLoginInfoId;
    private Integer transferState =TANSFER_STATE_NORMAL;//判断有没有打包债权

}